/*右上角导航栏滚动监听*/
function SCROLL(name){
    $(window).on("scroll",function(){
        if(( $(name).offset().top - $(this).scrollTop() ) < $(this).height()){
            //console.log(name,'进来了');
            $(name).addClass('animated').addClass('fadeInUp');
        }
    });
}

SCROLL('.BG-two .cont');
SCROLL('.BG-meal .Title');
SCROLL('.BG-meal>div>div:nth-child(2)');
SCROLL('.BG-meal .meal-hide');
SCROLL('.BG-bot .bg-bot');
SCROLL('.document>.cont');
SCROLL('.foot>.flex');
SCROLL('.f-bot>div');

$('two-cont>div').removeClass('fadeInUp').removeClass('animated');



